package com.ld.security.auth.shiro.util;

import org.apache.shiro.codec.Base64;

public class Base64Util {

    /*
     * base64加密
     * */
    public static String encodeBase64(String str) {

        return Base64.encodeToString(str.getBytes());
    }

    /*
     * base64解密
     * */

    public static String decodeBase64(String str) {
        return Base64.decodeToString(str);
    }



}
